<?php
 /******************************************************************************
 *   GunCMS is an avid supporter of open source software. This is the appropriate 
 *   option if you are creating an open source application with a license 
 *   compatible with the GNU GPL license v3.
 *   For details http://www.gnu.org/licenses/gpl.html
 *   DO NOT USE FOR COMMERCIAL WITHOUT PERMISSION
 *
 * GunCMS Version 1.0.3
 * Copyright(c) 2009-2010, T & L GdbR
 * info@guncms.de
 * 
 * http://www.guncms.de
 ********************************************************************************/
class FgcmsCountryBean {
	
	public function __construct() {
	// contructor function
	}
	
	/*returns the whole active left sided country table
	 */ 
	public static function get_all_country($db) {
		
    	$strSQL = sprintf("SELECT * FROM ".TBL_COUNTRY);
    	return $db->get_results($strSQL);
    }
	public static function get_country_byId($db,$id) {
		
    	$strSQL = sprintf("SELECT * FROM ".TBL_COUNTRY." WHERE country_id = '$id'");
    	return $db->get_row($strSQL);
    }
	
}
?>
